package com.zhangchao.day_book.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PageExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PageExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPageNoIsNull() {
            addCriterion("page_no is null");
            return (Criteria) this;
        }

        public Criteria andPageNoIsNotNull() {
            addCriterion("page_no is not null");
            return (Criteria) this;
        }

        public Criteria andPageNoEqualTo(String value) {
            addCriterion("page_no =", value, "pageNo");
            return (Criteria) this;
        }

        public Criteria andPageNoNotEqualTo(String value) {
            addCriterion("page_no <>", value, "pageNo");
            return (Criteria) this;
        }

        public Criteria andPageNoGreaterThan(String value) {
            addCriterion("page_no >", value, "pageNo");
            return (Criteria) this;
        }

        public Criteria andPageNoGreaterThanOrEqualTo(String value) {
            addCriterion("page_no >=", value, "pageNo");
            return (Criteria) this;
        }

        public Criteria andPageNoLessThan(String value) {
            addCriterion("page_no <", value, "pageNo");
            return (Criteria) this;
        }

        public Criteria andPageNoLessThanOrEqualTo(String value) {
            addCriterion("page_no <=", value, "pageNo");
            return (Criteria) this;
        }

        public Criteria andPageNoLike(String value) {
            addCriterion("page_no like", value, "pageNo");
            return (Criteria) this;
        }

        public Criteria andPageNoNotLike(String value) {
            addCriterion("page_no not like", value, "pageNo");
            return (Criteria) this;
        }

        public Criteria andPageNoIn(List<String> values) {
            addCriterion("page_no in", values, "pageNo");
            return (Criteria) this;
        }

        public Criteria andPageNoNotIn(List<String> values) {
            addCriterion("page_no not in", values, "pageNo");
            return (Criteria) this;
        }

        public Criteria andPageNoBetween(String value1, String value2) {
            addCriterion("page_no between", value1, value2, "pageNo");
            return (Criteria) this;
        }

        public Criteria andPageNoNotBetween(String value1, String value2) {
            addCriterion("page_no not between", value1, value2, "pageNo");
            return (Criteria) this;
        }

        public Criteria andPagePicIsNull() {
            addCriterion("page_pic is null");
            return (Criteria) this;
        }

        public Criteria andPagePicIsNotNull() {
            addCriterion("page_pic is not null");
            return (Criteria) this;
        }

        public Criteria andPagePicEqualTo(String value) {
            addCriterion("page_pic =", value, "pagePic");
            return (Criteria) this;
        }

        public Criteria andPagePicNotEqualTo(String value) {
            addCriterion("page_pic <>", value, "pagePic");
            return (Criteria) this;
        }

        public Criteria andPagePicGreaterThan(String value) {
            addCriterion("page_pic >", value, "pagePic");
            return (Criteria) this;
        }

        public Criteria andPagePicGreaterThanOrEqualTo(String value) {
            addCriterion("page_pic >=", value, "pagePic");
            return (Criteria) this;
        }

        public Criteria andPagePicLessThan(String value) {
            addCriterion("page_pic <", value, "pagePic");
            return (Criteria) this;
        }

        public Criteria andPagePicLessThanOrEqualTo(String value) {
            addCriterion("page_pic <=", value, "pagePic");
            return (Criteria) this;
        }

        public Criteria andPagePicLike(String value) {
            addCriterion("page_pic like", value, "pagePic");
            return (Criteria) this;
        }

        public Criteria andPagePicNotLike(String value) {
            addCriterion("page_pic not like", value, "pagePic");
            return (Criteria) this;
        }

        public Criteria andPagePicIn(List<String> values) {
            addCriterion("page_pic in", values, "pagePic");
            return (Criteria) this;
        }

        public Criteria andPagePicNotIn(List<String> values) {
            addCriterion("page_pic not in", values, "pagePic");
            return (Criteria) this;
        }

        public Criteria andPagePicBetween(String value1, String value2) {
            addCriterion("page_pic between", value1, value2, "pagePic");
            return (Criteria) this;
        }

        public Criteria andPagePicNotBetween(String value1, String value2) {
            addCriterion("page_pic not between", value1, value2, "pagePic");
            return (Criteria) this;
        }

        public Criteria andPageDescriptionIsNull() {
            addCriterion("page_description is null");
            return (Criteria) this;
        }

        public Criteria andPageDescriptionIsNotNull() {
            addCriterion("page_description is not null");
            return (Criteria) this;
        }

        public Criteria andPageDescriptionEqualTo(String value) {
            addCriterion("page_description =", value, "pageDescription");
            return (Criteria) this;
        }

        public Criteria andPageDescriptionNotEqualTo(String value) {
            addCriterion("page_description <>", value, "pageDescription");
            return (Criteria) this;
        }

        public Criteria andPageDescriptionGreaterThan(String value) {
            addCriterion("page_description >", value, "pageDescription");
            return (Criteria) this;
        }

        public Criteria andPageDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("page_description >=", value, "pageDescription");
            return (Criteria) this;
        }

        public Criteria andPageDescriptionLessThan(String value) {
            addCriterion("page_description <", value, "pageDescription");
            return (Criteria) this;
        }

        public Criteria andPageDescriptionLessThanOrEqualTo(String value) {
            addCriterion("page_description <=", value, "pageDescription");
            return (Criteria) this;
        }

        public Criteria andPageDescriptionLike(String value) {
            addCriterion("page_description like", value, "pageDescription");
            return (Criteria) this;
        }

        public Criteria andPageDescriptionNotLike(String value) {
            addCriterion("page_description not like", value, "pageDescription");
            return (Criteria) this;
        }

        public Criteria andPageDescriptionIn(List<String> values) {
            addCriterion("page_description in", values, "pageDescription");
            return (Criteria) this;
        }

        public Criteria andPageDescriptionNotIn(List<String> values) {
            addCriterion("page_description not in", values, "pageDescription");
            return (Criteria) this;
        }

        public Criteria andPageDescriptionBetween(String value1, String value2) {
            addCriterion("page_description between", value1, value2, "pageDescription");
            return (Criteria) this;
        }

        public Criteria andPageDescriptionNotBetween(String value1, String value2) {
            addCriterion("page_description not between", value1, value2, "pageDescription");
            return (Criteria) this;
        }

        public Criteria andPageDayWordIsNull() {
            addCriterion("page_day_word is null");
            return (Criteria) this;
        }

        public Criteria andPageDayWordIsNotNull() {
            addCriterion("page_day_word is not null");
            return (Criteria) this;
        }

        public Criteria andPageDayWordEqualTo(String value) {
            addCriterion("page_day_word =", value, "pageDayWord");
            return (Criteria) this;
        }

        public Criteria andPageDayWordNotEqualTo(String value) {
            addCriterion("page_day_word <>", value, "pageDayWord");
            return (Criteria) this;
        }

        public Criteria andPageDayWordGreaterThan(String value) {
            addCriterion("page_day_word >", value, "pageDayWord");
            return (Criteria) this;
        }

        public Criteria andPageDayWordGreaterThanOrEqualTo(String value) {
            addCriterion("page_day_word >=", value, "pageDayWord");
            return (Criteria) this;
        }

        public Criteria andPageDayWordLessThan(String value) {
            addCriterion("page_day_word <", value, "pageDayWord");
            return (Criteria) this;
        }

        public Criteria andPageDayWordLessThanOrEqualTo(String value) {
            addCriterion("page_day_word <=", value, "pageDayWord");
            return (Criteria) this;
        }

        public Criteria andPageDayWordLike(String value) {
            addCriterion("page_day_word like", value, "pageDayWord");
            return (Criteria) this;
        }

        public Criteria andPageDayWordNotLike(String value) {
            addCriterion("page_day_word not like", value, "pageDayWord");
            return (Criteria) this;
        }

        public Criteria andPageDayWordIn(List<String> values) {
            addCriterion("page_day_word in", values, "pageDayWord");
            return (Criteria) this;
        }

        public Criteria andPageDayWordNotIn(List<String> values) {
            addCriterion("page_day_word not in", values, "pageDayWord");
            return (Criteria) this;
        }

        public Criteria andPageDayWordBetween(String value1, String value2) {
            addCriterion("page_day_word between", value1, value2, "pageDayWord");
            return (Criteria) this;
        }

        public Criteria andPageDayWordNotBetween(String value1, String value2) {
            addCriterion("page_day_word not between", value1, value2, "pageDayWord");
            return (Criteria) this;
        }

        public Criteria andPageSkinIsNull() {
            addCriterion("page_skin is null");
            return (Criteria) this;
        }

        public Criteria andPageSkinIsNotNull() {
            addCriterion("page_skin is not null");
            return (Criteria) this;
        }

        public Criteria andPageSkinEqualTo(String value) {
            addCriterion("page_skin =", value, "pageSkin");
            return (Criteria) this;
        }

        public Criteria andPageSkinNotEqualTo(String value) {
            addCriterion("page_skin <>", value, "pageSkin");
            return (Criteria) this;
        }

        public Criteria andPageSkinGreaterThan(String value) {
            addCriterion("page_skin >", value, "pageSkin");
            return (Criteria) this;
        }

        public Criteria andPageSkinGreaterThanOrEqualTo(String value) {
            addCriterion("page_skin >=", value, "pageSkin");
            return (Criteria) this;
        }

        public Criteria andPageSkinLessThan(String value) {
            addCriterion("page_skin <", value, "pageSkin");
            return (Criteria) this;
        }

        public Criteria andPageSkinLessThanOrEqualTo(String value) {
            addCriterion("page_skin <=", value, "pageSkin");
            return (Criteria) this;
        }

        public Criteria andPageSkinLike(String value) {
            addCriterion("page_skin like", value, "pageSkin");
            return (Criteria) this;
        }

        public Criteria andPageSkinNotLike(String value) {
            addCriterion("page_skin not like", value, "pageSkin");
            return (Criteria) this;
        }

        public Criteria andPageSkinIn(List<String> values) {
            addCriterion("page_skin in", values, "pageSkin");
            return (Criteria) this;
        }

        public Criteria andPageSkinNotIn(List<String> values) {
            addCriterion("page_skin not in", values, "pageSkin");
            return (Criteria) this;
        }

        public Criteria andPageSkinBetween(String value1, String value2) {
            addCriterion("page_skin between", value1, value2, "pageSkin");
            return (Criteria) this;
        }

        public Criteria andPageSkinNotBetween(String value1, String value2) {
            addCriterion("page_skin not between", value1, value2, "pageSkin");
            return (Criteria) this;
        }

        public Criteria andPageSkinDescriptionIsNull() {
            addCriterion("page_skin_description is null");
            return (Criteria) this;
        }

        public Criteria andPageSkinDescriptionIsNotNull() {
            addCriterion("page_skin_description is not null");
            return (Criteria) this;
        }

        public Criteria andPageSkinDescriptionEqualTo(String value) {
            addCriterion("page_skin_description =", value, "pageSkinDescription");
            return (Criteria) this;
        }

        public Criteria andPageSkinDescriptionNotEqualTo(String value) {
            addCriterion("page_skin_description <>", value, "pageSkinDescription");
            return (Criteria) this;
        }

        public Criteria andPageSkinDescriptionGreaterThan(String value) {
            addCriterion("page_skin_description >", value, "pageSkinDescription");
            return (Criteria) this;
        }

        public Criteria andPageSkinDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("page_skin_description >=", value, "pageSkinDescription");
            return (Criteria) this;
        }

        public Criteria andPageSkinDescriptionLessThan(String value) {
            addCriterion("page_skin_description <", value, "pageSkinDescription");
            return (Criteria) this;
        }

        public Criteria andPageSkinDescriptionLessThanOrEqualTo(String value) {
            addCriterion("page_skin_description <=", value, "pageSkinDescription");
            return (Criteria) this;
        }

        public Criteria andPageSkinDescriptionLike(String value) {
            addCriterion("page_skin_description like", value, "pageSkinDescription");
            return (Criteria) this;
        }

        public Criteria andPageSkinDescriptionNotLike(String value) {
            addCriterion("page_skin_description not like", value, "pageSkinDescription");
            return (Criteria) this;
        }

        public Criteria andPageSkinDescriptionIn(List<String> values) {
            addCriterion("page_skin_description in", values, "pageSkinDescription");
            return (Criteria) this;
        }

        public Criteria andPageSkinDescriptionNotIn(List<String> values) {
            addCriterion("page_skin_description not in", values, "pageSkinDescription");
            return (Criteria) this;
        }

        public Criteria andPageSkinDescriptionBetween(String value1, String value2) {
            addCriterion("page_skin_description between", value1, value2, "pageSkinDescription");
            return (Criteria) this;
        }

        public Criteria andPageSkinDescriptionNotBetween(String value1, String value2) {
            addCriterion("page_skin_description not between", value1, value2, "pageSkinDescription");
            return (Criteria) this;
        }

        public Criteria andPageDayNameIsNull() {
            addCriterion("page_day_name is null");
            return (Criteria) this;
        }

        public Criteria andPageDayNameIsNotNull() {
            addCriterion("page_day_name is not null");
            return (Criteria) this;
        }

        public Criteria andPageDayNameEqualTo(String value) {
            addCriterion("page_day_name =", value, "pageDayName");
            return (Criteria) this;
        }

        public Criteria andPageDayNameNotEqualTo(String value) {
            addCriterion("page_day_name <>", value, "pageDayName");
            return (Criteria) this;
        }

        public Criteria andPageDayNameGreaterThan(String value) {
            addCriterion("page_day_name >", value, "pageDayName");
            return (Criteria) this;
        }

        public Criteria andPageDayNameGreaterThanOrEqualTo(String value) {
            addCriterion("page_day_name >=", value, "pageDayName");
            return (Criteria) this;
        }

        public Criteria andPageDayNameLessThan(String value) {
            addCriterion("page_day_name <", value, "pageDayName");
            return (Criteria) this;
        }

        public Criteria andPageDayNameLessThanOrEqualTo(String value) {
            addCriterion("page_day_name <=", value, "pageDayName");
            return (Criteria) this;
        }

        public Criteria andPageDayNameLike(String value) {
            addCriterion("page_day_name like", value, "pageDayName");
            return (Criteria) this;
        }

        public Criteria andPageDayNameNotLike(String value) {
            addCriterion("page_day_name not like", value, "pageDayName");
            return (Criteria) this;
        }

        public Criteria andPageDayNameIn(List<String> values) {
            addCriterion("page_day_name in", values, "pageDayName");
            return (Criteria) this;
        }

        public Criteria andPageDayNameNotIn(List<String> values) {
            addCriterion("page_day_name not in", values, "pageDayName");
            return (Criteria) this;
        }

        public Criteria andPageDayNameBetween(String value1, String value2) {
            addCriterion("page_day_name between", value1, value2, "pageDayName");
            return (Criteria) this;
        }

        public Criteria andPageDayNameNotBetween(String value1, String value2) {
            addCriterion("page_day_name not between", value1, value2, "pageDayName");
            return (Criteria) this;
        }

        public Criteria andPageDayTimeIsNull() {
            addCriterion("page_day_time is null");
            return (Criteria) this;
        }

        public Criteria andPageDayTimeIsNotNull() {
            addCriterion("page_day_time is not null");
            return (Criteria) this;
        }

        public Criteria andPageDayTimeEqualTo(Date value) {
            addCriterion("page_day_time =", value, "pageDayTime");
            return (Criteria) this;
        }

        public Criteria andPageDayTimeNotEqualTo(Date value) {
            addCriterion("page_day_time <>", value, "pageDayTime");
            return (Criteria) this;
        }

        public Criteria andPageDayTimeGreaterThan(Date value) {
            addCriterion("page_day_time >", value, "pageDayTime");
            return (Criteria) this;
        }

        public Criteria andPageDayTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("page_day_time >=", value, "pageDayTime");
            return (Criteria) this;
        }

        public Criteria andPageDayTimeLessThan(Date value) {
            addCriterion("page_day_time <", value, "pageDayTime");
            return (Criteria) this;
        }

        public Criteria andPageDayTimeLessThanOrEqualTo(Date value) {
            addCriterion("page_day_time <=", value, "pageDayTime");
            return (Criteria) this;
        }

        public Criteria andPageDayTimeIn(List<Date> values) {
            addCriterion("page_day_time in", values, "pageDayTime");
            return (Criteria) this;
        }

        public Criteria andPageDayTimeNotIn(List<Date> values) {
            addCriterion("page_day_time not in", values, "pageDayTime");
            return (Criteria) this;
        }

        public Criteria andPageDayTimeBetween(Date value1, Date value2) {
            addCriterion("page_day_time between", value1, value2, "pageDayTime");
            return (Criteria) this;
        }

        public Criteria andPageDayTimeNotBetween(Date value1, Date value2) {
            addCriterion("page_day_time not between", value1, value2, "pageDayTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}